package com.zhuge_new.Adapter;

import android.app.Activity;
import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhuge_new.R;
import com.zhuge_new.bean.MinDepositBean;
import com.zhuge_new.untils.DataUtilS;
import com.zhuge_new.untils.NumberUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/11/13.
 */

public class MinDepositAdapter extends BaseQuickAdapter<MinDepositBean.ObjectBean,BaseViewHolder> {


    private List<MinDepositBean.ObjectBean> data=new ArrayList<>();
    private Context context;
    public MinDepositAdapter(Context context, @Nullable List<MinDepositBean.ObjectBean> data) {
        super(R.layout.item_mindeposit, data);
        this.context=context;
        this.data=data;
    }


    @Override
    protected void convert(BaseViewHolder helper, MinDepositBean.ObjectBean item) {
        helper.setText(R.id.mindeposit_name,item.getWithdrawType());
        helper.setText(R.id.mindeposit_time,item.getCreateDate());
        helper.setText(R.id.mindeposit_money, NumberUtil.saveRound(item.getWithdrawSum(),2)+"元");
        helper.setText(R.id.mindeposit_state,item.getWithdrawStatus());
    }
}
